1
Introduction to Data Summarisation
DSAI2202 Lesson 5: Grouping and Summarising Data
00:00

In database management, data summarisation allows users to condense massive volumes of granular, row-level data into concise, meaningful high-level metrics. By leveraging aggregate functions like SUM(), AVG(), and COUNT(), raw operational records are transformed into actionable business insights.

Raw Rows ID | Date | Amt 01 | 10-01 | 50 02 | 10-01 | 120 03 | 10-02 | 75 Aggregate Functions SUM(), AVG(), COUNT() Condenses granular data Summary Metrics Total Revenue: 245 Avg Transaction: 81.67 Count: 3 orders

Core Concepts

  • Aggregate Functions: Functions like SUM(), AVG(), COUNT(), MIN(), and MAX() operate across multiple rows to return a single scalar value.
  • Execution Order: Row-level filtering via the WHERE clause happens before any grouping or aggregation takes place, ensuring summaries are calculated only on relevant base records.
  • Sorting Summaries: The ORDER BY clause can be applied to aggregated expressions (e.g., sorting daily totals from highest to lowest revenue) to structure final reports for analysis.

Practical Application

Professor Chen asks Dean Alice to review online store performance. Instead of inspecting thousands of individual purchase log entries, SQL summarisation condenses this dataset into concise daily revenue summaries and average transaction values, turning raw operational logs into immediate decision-making tools.

Introduction to Data Summarisation